import {request} from '@/utils/request'

// 查询回复单列表
export function listReply(query) {
  return request({
    url: '/workorder/woReply/list',
    method: 'get',
    params: query
  })
}

// 查询回复单列表
export function listReplyAll(query) {
  return request({
    url: '/workorder/woReply/list/all',
    method: 'get',
    params: query
  })
}

// 查询回复单详细
export function getReply(id) {
  return request({
    url: '/workorder/woReply/' + id,
    method: 'get'
  })
}

// 新增回复单
export function addReply(data) {
  return request({
    url: '/workorder/woReply',
    method: 'post',
    data: data
  })
}

// 修改回复单
export function updateReply(data) {
  return request({
    url: '/workorder/woReply',
    method: 'put',
    data: data
  })
}

// 删除回复单
export function delReply(id) {
  return request({
    url: '/workorder/woReply/' + id,
    method: 'delete'
  })
}

// 初始化回复单基本信息
export function getInitReply(){
  return request({
    url: '/workorder/woReply/getInitReply',
    method: 'get'
  })
}
